const fontSize = (document.documentElement.clientWidth * 100) / 375
document.documentElement.style.fontSize = fontSize + 'px'

// 解决1px边框问题
const viewport = document.querySelector('meta[name=viewport]') as any
viewport.content = `width=device-width,initial-scale=${
  1 / window.devicePixelRatio
}`

document.documentElement.style.fontSize =
  fontSize * window.devicePixelRatio + 'px'
export {}
